package com.example.service.Impl;

import com.example.Domain.Inform;
import com.example.Mapper.InformMapper;
import com.example.service.InformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class InformServiceImpl implements InformService {
    @Autowired
    private InformMapper informMapper;
    @Override
    public List<Inform> selectAll(Integer pageNum,Integer pageSize) {
        return informMapper.selectAll();
    }

    @Override
    public List<Inform> selectstatezero(Integer pageNum, Integer pageSize) {
        return informMapper.selectstatezero();
    }

    @Override
    public List<Inform> selectstateone(Integer pageNum, Integer pageSize) {
        return informMapper.selectstateone();
    }

    @Override
    public List<Inform> selectdim(Inform inform) {
        System.out.println(inform.getLoginName());
        return informMapper.selectdim(inform);
    }

    @Override
    public boolean deleteinform(Integer id) {
        return informMapper.deleteinform(id);
    }

    @Override
    public boolean insertinfrom(Inform inform) {
        return informMapper.insertinfrom(inform);
    }
}
